<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : BuscarOrcamentoXX
    Created on : 12/06/2009, 18:46:53
    Author     : Guilherme
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:jsp="http://java.sun.com/JSP/Page">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ice:outputHtml id="outputHtml1">
            <ice:outputHead id="outputHead1">
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle1"/>
                <ice:outputStyle href="./xmlhttp/css/rime/rime.css" id="outputStyle2"/>
                <ice:outputStyle href="./resources/css/formata_conteudo.css" id="outputStyle3"/>
                <script language="JavaScript" src="./view/js/MascaraCampos.js" type="text/javascript" />
            </ice:outputHead>
            <ice:outputBody id="outputBody1" style="-rave-layout: grid">
                <ice:form id="form1">
                    <!-- Painel Principal -->
                    <ice:panelGroup id="painelPrincipal" styleClass="principal">
                        <!--  Painel Menu  -->
                        <ice:panelLayout id="panelLayoutMenu" style="width: 100%; top: 26%; left: 9.5%"/>
                        <!-- Painel Cabeçalho -->
                        <ice:panelLayout id="panelLayoutCabecalho" style=" -rave-layout: grid" styleClass="cabecalho">
                            <ice:commandButton action="#{view$Util.btn_voltar_action}" id="panelLayoutLogo" image="/resources/images/logo_soligee.png" styleClass="logo"/>
                        </ice:panelLayout>
                        <!-- Fim - Painel Cabeçalho -->
                        <!-- Painel Título -->
                        <ice:panelLayout id="painelTitulo" style="-rave-layout: grid" styleClass="titulo bOrcamento">
                            <!-- Painel Voltar -->
                            <ice:panelLayout id="painelVoltar" style="height: 54px; right:10px; top: 5px; position: absolute; width: 54px">
                                <ice:commandButton action="#{view$Util.btn_voltar_action}" id="btn_voltar" image="/resources/images/btn/voltar.png" styleClass="btnVoltar"/>
                            </ice:panelLayout>
                            <!-- Fim Painel Voltar -->
                        </ice:panelLayout>
                        <!-- Painel Busca -->
                        <ice:panelLayout id="panelPainelBusca" style="-rave-layout: grid" styleClass="painelBusca">
                            <!-- Tipo Busca g -->
                            <ice:selectOneMenu binding="#{view$BuscarOrcamento.tipoBusca}" id="tipoBusca" partialSubmit="false" styleClass="tipoBusca"
                                value="#{view$BuscarOrcamento.selectOneMenu1Bean.selectedObject}" valueChangeListener="#{view$BuscarOrcamento.tipoBusca_processValueChange}">
                                <f:selectItems id="selectOneMenu1selectItems1" value="#{view$BuscarOrcamento.tipoBuscaDefaultItems}"/>
                            </ice:selectOneMenu>
                            <!-- CampoABuscar  -->
                            <ice:selectInputText binding="#{view$BuscarOrcamento.campoABuscar}" id="campoABuscar" styleClass="campoABuscar" width="240">
                                <f:selectItems id="selectInputText1selectedItems" value="#{view$BuscarOrcamento.item}"/>
                            </ice:selectInputText>
                            <ice:commandButton action="#{view$BuscarOrcamento.btnBuscar_action}" id="btnBuscar" styleClass="btnBuscar" value="Buscar"/>
                            <ice:commandButton action="#{view$BuscarOrcamento.btnAlterar_action}" binding="#{view$BuscarOrcamento.btnAlterar}" id="btnAlterar"
                                styleClass="btnAlterar" value="Alterar"/>
                            <ice:commandButton action="#{view$BuscarOrcamento.btnConfirmaAlteracao_action}"
                                binding="#{view$BuscarOrcamento.btnConfirmaAlteracao}" id="btnConfirmaAlteracao" styleClass="btnAlterar" value="Confirmar Alteração"/>
                            <ice:commandButton action="#{view$BuscarOrcamento.btnExcluir_action}" binding="#{view$BuscarOrcamento.btnExcluir}" id="btnExcluir"
                                styleClass="btnExcluir" value="Excluir"/>
                        </ice:panelLayout>
                        <!-- Painel Corpo -->
                        <ice:panelLayout id="painelCorpo" styleClass="pnCorpo">
                            <!-- Painel Corpo Esquerda -->
                            <ice:panelLayout id="painelCorpoEsquerda" styleClass="pnCorpoEsquerda">
                                <!-- Tabela ResultadoBusca -->
                                <center>
                                    <ice:dataTable binding="#{view$BuscarOrcamento.tabelaResultadoBusca}" id="tabelaResultadoBusca" rows="5"
                                        value="#{view$BuscarOrcamento.dataTable1Model}" var="currentRow">
                                        <f:facet name="footer"/>
                                        <ice:column id="column5">
                                            <h:commandLink action="#{view$BuscarOrcamento.linkAction1_action}" id="linkAction1" value="#{currentRow.pessoa.nome}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText4" value="Cliente"/>
                                            </f:facet>
                                        </ice:column>
                                        <f:facet name="footer"/>
                                        <f:facet name="footer"/>
                                        <f:facet name="header"/>
                                        <ice:column id="column4">
                                            <ice:outputText id="outputText1" value="#{currentRow.codOrcamento}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText2" value="Código"/>
                                            </f:facet>
                                        </ice:column>
                                        <f:facet name="header"/>
                                        <ice:column id="column6">
                                            <ice:outputText id="outputText5" value="#{currentRow.valorTotalVista}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText6" value="Total a Vista"/>
                                            </f:facet>
                                        </ice:column>
                                        <f:facet name="footer"/>
                                        <ice:column id="column7">
                                            <ice:outputText id="outputText3" value="#{currentRow.valorTotalPrazo}"/>
                                            <f:facet name="header">
                                                <ice:outputText id="outputText7" value="Total a Prazo"/>
                                            </f:facet>
                                        </ice:column>
                                        <f:facet name="footer">
                                            <ice:panelGroup id="panelGroup1" style="display: block; text-align: center" styleClass="list-paging-footer">
                                                <ice:commandButton action="#{view$BuscarOrcamento.tabelaResultadoBusca_firstPageAction}"
                                                    binding="#{view$BuscarOrcamento.tabelaResultadoBuscaFooterFirstButton}"
                                                    id="tabelaResultadoBuscaFooterFirstButton" value="|&lt;"/>
                                                <ice:commandButton action="#{view$BuscarOrcamento.tabelaResultadoBusca_previousPageAction}"
                                                    binding="#{view$BuscarOrcamento.tabelaResultadoBuscaFooterPreviousButton}"
                                                    id="tabelaResultadoBuscaFooterPreviousButton" value="&lt;-"/>
                                                <ice:commandButton action="#{view$BuscarOrcamento.tabelaResultadoBusca_nextPageAction}"
                                                    binding="#{view$BuscarOrcamento.tabelaResultadoBuscaFooterNextButton}"
                                                    id="tabelaResultadoBuscaFooterNextButton" value="-&gt;"/>
                                                <ice:commandButton action="#{view$BuscarOrcamento.tabelaResultadoBusca_lastPageAction}"
                                                    binding="#{view$BuscarOrcamento.tabelaResultadoBuscaFooterLastButton}"
                                                    id="tabelaResultadoBuscaFooterLastButton" value="&gt;|"/>
                                            </ice:panelGroup>
                                        </f:facet>
                                    </ice:dataTable>
                                </center>
                            </ice:panelLayout>
                            <!-- Painel Corpo Direita 1-->
                            <ice:panelLayout binding="#{view$BuscarOrcamento.painelCorpoDireita}" id="painelCorpoDireita" layout="flow" styleClass="pnCorpoDireita">
                                <!-- Painel Abas - Buscar Orcamento -->
                                <ice:panelTabSet binding="#{view$BuscarOrcamento.painelBuscarOrcamento}" id="painelBuscarOrcamento" selectedIndex="0"
                                    styleClass="pnTabSet" tabPlacement="Top">
                                    <!-- Aba 01 -->
                                    <ice:panelTab id="aba01" label="Orcamento">
                                        <ice:panelLayout id="conteudoAba01" layout="flow" styleClass="pnLayConteudo">
                                            <ice:panelLayout id="panelLayoutA1" layout="flow" styleClass="pnLayForm1 pBusca">
                                                <!--ID do Orçamento -->
                                                <ice:outputLabel id="tx_numeroOrcamento" styleClass="rotulo" value="Numero Orcamento"/>
                                                <ice:inputText binding="#{view$BuscarOrcamento.campoCodOrcamento}" id="campoCodOrcamento" partialSubmit="true"
                                                    readonly="true" styleClass="entradaTxt" title="Número do Orçamento."/>
                                                <!--ID do Vendedor -->
                                                <ice:outputLabel id="tx_nomeVendedor" styleClass="rotulo" value="Nome Vendedor:"/>
                                                <ice:selectOneMenu binding="#{view$BuscarOrcamento.campoVendedor}" id="campoVendedor" partialSubmit="true"
                                                    styleClass="entradaTxt" title="Nome do Vendedor." value="#{view$BuscarOrcamento.defaultSelectedData2.selectedObject}">
                                                    <f:selectItems id="selectOneMenu1selectItems3" value="#{view$BuscarOrcamento.selectOneMenu1DefaultItems}"/>
                                                </ice:selectOneMenu>
                                                <!--Nome do Cliente -->
                                                <ice:outputLabel id="tx_nomeCliente" styleClass="rotulo" value="Nome Cliente: "/>
                                                <ice:selectOneMenu binding="#{view$BuscarOrcamento.campoCliente}" id="campoCliente" partialSubmit="true"
                                                    styleClass="entradaTxt" title="Nome do Cliente." value="#{view$BuscarOrcamento.defaultSelectedData1.selectedObject}">
                                                    <f:selectItems id="selectOneMenu1selectItems2" value="#{view$BuscarOrcamento.selectOneMenu1DefaultItems1}"/>
                                                </ice:selectOneMenu>
                                            </ice:panelLayout>
                                            <ice:panelLayout id="panelLayoutA2" layout="flow" styleClass="pnLayForm2 pBusca">
                                                <!--Quantidade de Produtos -->
                                                <ice:outputLabel id="tx_quantidadeProdutos" styleClass="rotulo" value="Quantidade de Produtos: "/>
                                                <ice:inputText binding="#{view$BuscarOrcamento.campoQuantidadeProdutos}" id="campoQuantidadeProdutos"
                                                    partialSubmit="true" readonly="true" styleClass="entradaTxt" title="Numero de Produtos."/>
                                                <!--Data do Orçamento -->
                                                <ice:outputLabel id="tx_dataOrcamento" styleClass="rotulo" value="Data do Orçamento: "/>
                                                <ice:selectInputDate binding="#{view$BuscarOrcamento.dataOrcamento}" id="dataOrcamento"
                                                    inputTitle="Data de Realização do Orçamento." partialSubmit="true" popupDateFormat="dd/MM/yyyy"
                                                    renderAsPopup="true" renderMonthAsDropdown="true" renderYearAsDropdown="true" styleClass="entradaTxt"
                                                    value="#{view$BuscarOrcamento.selectInputDate1Bean.date1}" visible="true"/>
                                                <!--Link Cancelar -->
                                                <ice:commandLink action="#{view$BuscarOrcamento.linkCancelar_action}"
                                                    binding="#{view$BuscarOrcamento.linkCancelar}" id="linkCancelar"/>
                                                <!-- Link Proxima Aba -->
                                                <ice:commandLink action="#{view$BuscarOrcamento.commandLink1_action}" id="link_proximaAba01" styleClass="proximoBtn"/>
                                            </ice:panelLayout>
                                        </ice:panelLayout>
                                    </ice:panelTab>
                                    <!-- Aba 02 -->
                                    <ice:panelTab id="aba02" label="Itens">
                                        <ice:panelLayout id="conteudoAba02" layout="flow" styleClass="pnLayConteudo">
                                            <center>
                                                <ice:panelLayout id="panelLayoutB1" layout="flow" styleClass="pnLayForm">
                                                    <ice:dataTable binding="#{view$BuscarOrcamento.tabelaItensOrcamento}" id="tabelaItensOrcamento" rows="5"
                                                        style="left: 24px; top: -10px; position: absolute" value="#{view$BuscarOrcamento.dataTable1Model2}" var="currentRow">
                                                        <ice:column id="column1">
                                                            <ice:outputText id="outputText60" value="#{currentRow.codProduto}"/>
                                                            <f:facet name="header">
                                                                <ice:outputText id="outputText70" title="Código do Produto." value="Cód."/>
                                                            </f:facet>
                                                        </ice:column>
                                                        <ice:column id="column2">
                                                            <ice:outputText id="outputText80" value="#{currentRow.descricaoProduto}"/>
                                                            <f:facet name="header">
                                                                <ice:outputText id="outputText90" title="Descrição do Produto." value="Descrição"/>
                                                            </f:facet>
                                                        </ice:column>
                                                        <ice:column id="column3">
                                                            <ice:outputText id="outputText100" value="#{currentRow.valorUnitario}"/>
                                                            <f:facet name="header">
                                                                <ice:outputText id="outputText101" title="Valor de Cada Produto." value="Valor Unitário"/>
                                                            </f:facet>
                                                        </ice:column>
                                                        <ice:column id="column8">
                                                            <ice:outputText id="outputText9" value="#{currentRow.quantidade}"/>
                                                            <f:facet name="header">
                                                                <ice:outputText id="outputText10" title="Quantidade de Produtos." value="Quantidade"/>
                                                            </f:facet>
                                                        </ice:column>
                                                        <ice:column id="column9">
                                                            <ice:outputText id="outputText11" value="#{currentRow.total}"/>
                                                            <f:facet name="header">
                                                                <ice:outputText id="outputText12" title="Valor Total do Orçamento." value="Total"/>
                                                            </f:facet>
                                                        </ice:column>
                                                        <f:facet name="footer"/>
                                                        <ice:column id="column10">
                                                            <h:commandButton action="#{view$BuscarOrcamento.btnAlteraItemTabela_action}"
                                                                binding="#{view$BuscarOrcamento.btnAlteraItemTabela}" id="btnAlteraItemTabela" value="Alterar"/>
                                                            <f:facet name="header">
                                                                <ice:outputText id="outputText13" value="Alterar Item"/>
                                                            </f:facet>
                                                        </ice:column>
                                                    </ice:dataTable>
                                                </ice:panelLayout>
                                            </center>
                                            <!--Link Cancelar -->
                                            <ice:commandLink action="#{view$BuscarOrcamento.linkCancelar2_action}" id="linkCancelar2" styleClass="cancelarBtn minix"/>
                                            <!-- Link - Próxima Aba -->
                                            <ice:commandLink action="#{view$BuscarOrcamento.link_proximaAba02_action}"
                                                binding="#{view$BuscarOrcamento.commandLink2}" id="link_proximaAba02" styleClass="proximoBtn"/>
                                        </ice:panelLayout>
                                    </ice:panelTab>
                                    <!-- Aba 03 -->
                                    <ice:panelTab id="aba03" label="Mais Informacoes">
                                        <ice:panelLayout id="conteudoAba03" layout="flow" style="height: 189px; position: absolute; width: 454px; -rave-layout: grid">
                                            <ice:panelLayout id="panelLayoutC1" layout="flow" styleClass="pnLayForm1 pBusca">
                                                <!--Validade da Proposta -->
                                                <ice:outputLabel id="tx_validadeProposta" styleClass="rotulo" value="Validade da Proposta: "/>
                                                <ice:selectInputDate binding="#{view$BuscarOrcamento.validadeProposta}" id="validadeProposta"
                                                    inputTitle="Data de Validade do Orçamento." partialSubmit="true" popupDateFormat="dd/MM/yyyy"
                                                    renderAsPopup="true" renderMonthAsDropdown="true" renderYearAsDropdown="true" styleClass="entradaTxt"
                                                    value="#{view$BuscarOrcamento.selectInputDateBean2.date1}" visible="true"/>
                                                <!--Observações -->
                                                <ice:outputLabel id="tx_observacoes" styleClass="rotulo" value="Observações: "/>
                                                <ice:inputTextarea binding="#{view$BuscarOrcamento.campoObservacoes}" id="campoObservacoes" partialSubmit="true"
                                                    styleClass="entradaTxt" title="Observações feitas em Relação ao Orçamento."/>
                                            </ice:panelLayout>
                                            <ice:panelLayout id="panelLayoutC3" layout="flow" styleClass="pnLayForm2 pBusca">
                                                <!--Link Cancelar -->
                                                <ice:commandLink action="#{view$BuscarOrcamento.linkCancelar3_action}" id="linkCancelar3" styleClass="cancelarBtn minix"/>
                                                <!--Valor à Vista -->
                                                <ice:outputLabel id="tx_valorVista" styleClass="rotulo" value="Valor à Vista: "/>
                                                <ice:inputText binding="#{view$BuscarOrcamento.campoValorVista}" id="campoValorVista" partialSubmit="true"
                                                    readonly="true" styleClass="entradaTxt" title="Valor do Orçamento à Vista."/>
                                                <!--Valor à Prazo -->
                                                <ice:outputLabel id="tx_valorPrazo" styleClass="rotulo" value="Valor à Prazo: "/>
                                                <ice:inputText binding="#{view$BuscarOrcamento.campoValorPrazo}" id="campoValorPrazo" partialSubmit="true"
                                                    onkeypress="mascara(this,valor);" styleClass="entradaTxt" title="Valor do Orçamento à Prazo."/>
                                                <!--Plano de Pagamento -->
                                                <ice:outputLabel id="tx_planoPagamento" styleClass="rotulo" value="Plano de Pagamento: "/>
                                                <ice:selectOneMenu binding="#{view$BuscarOrcamento.opcaoPlanoPagamento}" id="opcaoPlanoPagamento"
                                                    partialSubmit="true" styleClass="entradaTxt" title="Opção do Plano de Pagamento." value="#{view$BuscarOrcamento.botaoSelecionadoPlanoPagamento.selectedObject}">
                                                    <f:selectItems id="selectOneMenu1selectItems" value="#{view$BuscarOrcamento.botaoPlanoPagamento}"/>
                                                </ice:selectOneMenu>
                                            </ice:panelLayout>
                                        </ice:panelLayout>
                                    </ice:panelTab>
                                    <ice:panelTab binding="#{view$BuscarOrcamento.aba04}" id="aba04" label="Alterar Item" style="">
                                        <ice:panelLayout id="conteudoAba04" styleClass="pnLayConteudo">
                                            <ice:outputLabel id="txCodProduto" style="left: 20px; top: 10px; position: absolute" value="Código"/>
                                            <ice:outputLabel id="txQuantidade" style="left: 160px; top: 10px; position: absolute" value="Descrição"/>
                                            <ice:outputLabel id="txValorUnitario" style="left: 160px; top: 70px; position: absolute" value="Quantidade"/>
                                            <ice:outputLabel id="txTotal" style="left: 20px; top: 70px; position: absolute" value="Valor Unitário"/>
                                            <ice:outputLabel id="txDescricao" style="left: 20px; top: 120px; position: absolute" value="Total"/>
                                            <ice:inputText binding="#{view$BuscarOrcamento.campoCodProduto}" id="campoCodProduto" readonly="true" style="left: 18px; top: 38px; position: absolute"/>
                                            <ice:inputText binding="#{view$BuscarOrcamento.campoDescricao}" id="campoDescricao" partialSubmit="true"
                                                readonly="true" style="left: 158px; top: 38px; position: absolute"/>
                                            <ice:inputText binding="#{view$BuscarOrcamento.campoValorUnitario}" id="campoValorUnitario" partialSubmit="true"
                                                readonly="true" style="left: 18px; top: 98px; position: absolute"/>
                                            <ice:inputText binding="#{view$BuscarOrcamento.campoQuantidade}" id="campoQuantidade" partialSubmit="true"
                                                readonly="true" style="left: 158px; top: 98px; position: absolute"/>
                                            <ice:inputText binding="#{view$BuscarOrcamento.campoTotal}" id="campoTotal" partialSubmit="true" readonly="true" style="left: 18px; top: 148px; position: absolute"/>
                                            <ice:commandButton action="#{view$BuscarOrcamento.btnOKAlteraItem_action}" id="btnOKAlteraItem"
                                                style="left: 170px; top: 150px; position: absolute" value="OK"/>
                                        </ice:panelLayout>
                                    </ice:panelTab>
                                </ice:panelTabSet>
                                <!-- Fim Painel Buscar Orcamento -->
                            </ice:panelLayout>
                            <!-- Fim Painel Corpo Direita -->
                            <!-- Painel Rodapé -->
                            <ice:panelLayout id="painelRodape" layout="flow" styleClass="boxRodape">
                                <ice:panelLayout id="painelRodapeEsq" styleClass="esqRodape"/>
                                <ice:panelLayout id="logoRodape" styleClass="logoRodape"/>
                                <ice:panelLayout id="painelRodapeDir" styleClass="dirRodape"/>
                            </ice:panelLayout>
                            <!-- Fim Painel Rodapé -->
                        </ice:panelLayout>
                        <!-- Fim - Painel Corpo -->
                    </ice:panelGroup>
                    <!-- Fim - Painel Principal -->
                    <!--Inicio - Janela Pop-up -->
                    <ice:panelPopup autoCentre="true" binding="#{view$BuscarOrcamento.panelPopup1}" draggable="true" id="panelPopup" modal="true"
                        rendered="#{view$BuscarOrcamento.panelPopup1Bean.showDraggablePanel}" styleClass="jpopup" visible="#{view$BuscarOrcamento.panelPopup1Bean.showModalPanel}">
                        <f:facet name="header">
                            <ice:outputText id="outputText8" value="Atenção"/>
                        </f:facet>
                        <f:facet name="body">
                            <ice:panelGroup id="panelPopBody" styleClass="jpopBody">
                                <ice:panelLayout id="panelPopTxt" styleClass="jpopTxt">
                                    <ice:outputText binding="#{view$BuscarOrcamento.textoPopUp}" id="textoPopUp" value="body text"/>
                                </ice:panelLayout>
                                <ice:panelLayout id="panelPopBtn" styleClass="jpopBtn">
                                    <ice:commandButton action="#{view$BuscarOrcamento.btnPopUp1_action}" binding="#{view$BuscarOrcamento.btnPopUp1}"
                                        id="btnPopUp1" value="submit"/>
                                    <ice:commandButton action="#{view$BuscarOrcamento.btnPopUp2_action}" binding="#{view$BuscarOrcamento.btnPopUp2}"
                                        id="btnPopUp2" value="submit"/>
                                </ice:panelLayout>
                            </ice:panelGroup>
                        </f:facet>
                    </ice:panelPopup>
                    <!--Fim - Janela Pop-up -->
                </ice:form>
            </ice:outputBody>
        </ice:outputHtml>
    </f:view>
</jsp:root>
